Component({
  data: {
    checked: true,
  },
  methods: {
    onChange(event: WechatMiniprogram.CustomEvent) {
      this.setData({
        checked: event.detail as unknown as boolean,
      });
    },
  },
});
